//
//
//  手动加工界面
//
//

import QtQuick
import QtQuick.Controls.Material
import QtQuick.Layouts

Item {
    id: manualProcessWindowRoot
    width: rootWidth
    height: rootHeight /*- 150*/

    A_NumberKeyboard{
        id: manualProcessKeyboard
        isDirectOverwrite: false
    }

    Component.onCompleted: {
        Cpp_PLC.QML_CurrentPage = 1;
        Cpp_PLC.write_Modbus_RTU_Hold_16(48,"1")
    }

    ///// 打印功能相关
    property string leftAngle_Print : Cpp_PLC.LeftAngleFeedBack ? qsTr("90") : qsTr("45")
    property string rightAngle_Print : Cpp_PLC.RightAngleFeedBack ? qsTr("90") : qsTr("45")
    property string materialLength_Print : Cpp_PLC.Wait_Worked_MaterialLength
    property string materialHeight_Print : Cpp_PLC.MaterialHeightValue

    /////

    Text{
        anchors.horizontalCenter: manualProcessWindowRoot.horizontalCenter
        anchors.top: manualProcessWindowRoot.top
        anchors.topMargin: 10
        font.pixelSize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
        font.bold: true
        text: qsTr("手动加工界面")
    }

    Popup{      // 料高选择界面
        id:materialHeightChoosePopup
        width: manualProcessWindowRoot.width * 0.95
        height: manualProcessWindowRoot.height * 0.85
        anchors.centerIn: manualProcessWindowRoot
        modal: false
        dim: true
        closePolicy: Popup.NoAutoClose

        Rectangle{
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.leftMargin: 110
            width: 100
            height: 30
            color: "transparent"
            Text{
                anchors.centerIn: parent
                font.pixelSize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
                font.bold: true
                text: qsTr("名 称")
            }
        }
        Rectangle{
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.leftMargin: 340
            width: 100
            height: 30
            color: "transparent"
            Text{
                anchors.centerIn: parent
                font.pixelSize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
                font.bold: true
                text: qsTr("料 高 值")
            }
        }
        Rectangle{
            anchors.top: parent.top
            anchors.right: parent.right
            anchors.rightMargin: 270
            width: 100
            height: 30
            color: "transparent"
            Text{
                anchors.centerIn: parent
                font.pixelSize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
                font.bold: true
                text: qsTr("名 称")
            }
        }
        Rectangle{
            anchors.top: parent.top
            anchors.right: parent.right
            anchors.rightMargin: 40
            width: 100
            height: 30
            color: "transparent"
            Text{
                anchors.centerIn: parent
                font.pixelSize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
                font.bold: true
                text: qsTr("料 高 值")
            }
        }

        ColumnLayout{
            anchors.top: parent.top
            anchors.topMargin: 50
            anchors.horizontalCenter: parent.horizontalCenter

            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "1"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_01)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_01
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(1,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }

                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_01

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(1,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "21"
                    labelBack: focus ? "green" : "transparent"
                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_21)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_21

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(21,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_21

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(21,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "2"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_02)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_02
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(2,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_02

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(2,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "22"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_22)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_22

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(22,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_22

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(22,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "3"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_03)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_03
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(3,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_03

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(3,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "23"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_23)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_23

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(23,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_23

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(23,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "4"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_04)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_04
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(4,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_04

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(4,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "24"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_24)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_24

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(24,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_24

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(24,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "5"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_05)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_05
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(5,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_05

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(5,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "25"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_25)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_25

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(25,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_25

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(25,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "6"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_06)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_06
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(6,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_06

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(6,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "26"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_26)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_26

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(26,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_26

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(26,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "7"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_07)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_07
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(7,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_07

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(7,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "27"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_27)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_27

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(27,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_27

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(27,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "8"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_08)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_08
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(8,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_08

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(8,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "28"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_28)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_28

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(28,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_28

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(28,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "9"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_09)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_09
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(9,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_09

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(9,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "29"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_29)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_29

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(29,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_29

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(29,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "10"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_10)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_10
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(10,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_10

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(10,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "30"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_30)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_30

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(30,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_30

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(30,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "11"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_11)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_11
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(11,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_11

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(11,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "31"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_31)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_31

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(31,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_31

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(31,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "12"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_12)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_12
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(12,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_12

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(12,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "32"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_32)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_32

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(32,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_32

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(32,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "13"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_13)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_13
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(13,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_13

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(13,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "33"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_33)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_33

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(33,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_33

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(33,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "14"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_14)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_14
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(14,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_14

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(14,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "34"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_34)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_34

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(34,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_34

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(34,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "15"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_15)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_15
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(15,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_15

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(15,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "35"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_35)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_35

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(35,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_35

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(35,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "16"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_16)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_16
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(16,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_16

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(16,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "36"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_36)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_36

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(36,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_36

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(36,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "17"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_17)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_17
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(17,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_17

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(17,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "37"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_37)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_37

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(37,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_37

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(37,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "18"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_18)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_18
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(18,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_18

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(18,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "38"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_38)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_38

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(38,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_38

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(38,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "19"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_19)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_19
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(19,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_19

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(19,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "39"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_39)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_39

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(39,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_39

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(39,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }
            Item{
                width: 1060
                height: 70

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 20
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "20"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_20)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 100
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_20
                    validatorFlag : false

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(20,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 320
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_20

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(20,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }

                A_Label{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 540
                    labelWidth: 70
                    labelHeight: 70
                    label_Data: "40"
                    labelBack: focus ? "green" : "transparent"

                    MouseArea{
                        anchors.fill: parent
                        onClicked: {
                            parent.forceActiveFocus()
                            Cpp_PLC.write_Modbus_RTU_Hold_32(214,Cpp_MaterialHeight.MaterialHeight_40)
                        }
                    }
                }

                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 620
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialName_40

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(40,"MaterialName",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
                A_TextInput{
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.left: parent.left
                    anchors.leftMargin: 840
                    maxDataLength: 9
                    showData: Cpp_MaterialHeight.MaterialHeight_40

                    onInputFinished: {
                        Cpp_MaterialHeight.saveData(40,"MaterialHeight",inputData)
                        Cpp_MaterialHeight.getAllDataFromSQL()
                    }
                }
            }

        }


        background: Rectangle{

            gradient: Gradient {
                orientation: Gradient.Vertical
                GradientStop { position: 0.0 ; color: "#FFFFFF"}
                GradientStop { position: 0.5 ; color: "#1E90FF"}
                GradientStop { position: 1.0 ; color: "#FFFFFF"}
            }

            border.width: 2
            border.color: "gold"

            A_Button{
                anchors.right: parent.right
                anchors.bottom: parent.bottom

                contentText_Data: qsTr("关 闭")
                onButtonClicked: {
                    materialHeightChoosePopup.close()
                }
            }
        }





    }


    // 机头角度选择
    MechineAngle{
        id: mechineAngleArea
        anchors.top: manualProcessWindowRoot.top
        // anchors.topMargin: 100
        anchors.horizontalCenter: manualProcessWindowRoot.horizontalCenter
    }

    Item{
        id: workAreaBack
        anchors.top: mechineAngleArea.bottom
        anchors.topMargin: -3
        anchors.horizontalCenter: manualProcessWindowRoot.horizontalCenter
        width: manualProcessWindowRoot.width
        height: 980

        Rectangle{
            anchors.fill: parent
            color: "transparent"
            border.width: 3
            border.color: "#F0F8FF"
        }        

        A_Button{
            id: heightButton
            anchors.bottom: heightSetting_Input.top
            anchors.bottomMargin: 10
            anchors.horizontalCenter: heightSetting_Input.horizontalCenter
            buttonWidth: 300
            contentText_Data: qsTr("料  高")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
            visible: !Cpp_PLC.MechineChangeAngleMode

            onButtonClicked: {
                console.log("进入料高选择界面")
                materialHeightChoosePopup.open()
            }

        }

        // A_TextInput{
        //     id: heightSetting_Input
        //     inputWidth: 300
        //     anchors.horizontalCenter: workAreaBack.horizontalCenter
        //     anchors.top: workAreaBack.top
        //     anchors.topMargin: 120
        //     showData: Cpp_PLC.MaterialHeightValue
        //     visible: !Cpp_PLC.MechineChangeAngleMode

        //     onInputFinished: {
        //         // console.log("料高设定: "+ inputData)
        //         Cpp_PLC.write_Modbus_RTU_Hold_32(214,inputData)
        //     }

        // }
        A_NumberInput{
            id: heightSetting_Input
            inputWidth: 300
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            anchors.top: workAreaBack.top
            anchors.topMargin: 120
            text: Cpp_PLC.MaterialHeightValue
            visible: !Cpp_PLC.MechineChangeAngleMode
            // placeholderText: "测试"
            keyboard: manualProcessKeyboard
            onEditingFinished: function(value){
                Cpp_PLC.write_Modbus_RTU_Hold_32(214,value)
            }

        }

        // 料长设定
        A_Label{
            anchors.bottom: lengthSetting_Input.top
            // anchors.rightMargin: 20
            anchors.horizontalCenter: lengthSetting_Input.horizontalCenter
            // labelWidth: 300
            label_Data: qsTr("料  长")

            labelBorderColor: "transparent"
            labelBack: "transparent"
        }

        A_Label{
            anchors.right: lengthSetting_Input.left
            anchors.rightMargin: 130
            anchors.verticalCenter: lengthSetting_Input.verticalCenter
            label_Data: Cpp_PLC.Manual_MaterialLengthMin
            labelBorderColor: "transparent"
            labelBack: "transparent"
        }

        Text{
            anchors.right: lengthSetting_Input.left
            anchors.rightMargin: 50
            anchors.verticalCenter: lengthSetting_Input.verticalCenter
            font.pointSize: 40
            text: "<"
        }

        // A_TextInput{
        //     id: lengthSetting_Input
        //     anchors.top: workAreaBack.top
        //     anchors.topMargin: 300
        //     anchors.horizontalCenter: workAreaBack.horizontalCenter
        //     inputWidth: 300
        //     showData: Cpp_PLC.MaterialLengthValue

        //     onInputFinished: {
        //         // console.log("料长设定: "+ inputData)
        //         // Cpp_PLC.write_Modbus_RTU_Hold_32(212,inputData)
        //         if(Number(inputData) < Number(Cpp_PLC.Manual_MaterialLengthMin))
        //         {
        //             Cpp_PLC.write_Modbus_RTU_Hold_32(212,Cpp_PLC.Manual_MaterialLengthMin)
        //         }
        //         else if(Number(inputData) > Number(Cpp_PLC.Manual_MaterialLengthMax))
        //         {
        //             Cpp_PLC.write_Modbus_RTU_Hold_32(212,Cpp_PLC.Manual_MaterialLengthMax)
        //         }
        //         else {
        //             Cpp_PLC.write_Modbus_RTU_Hold_32(212,inputData)
        //         }

        //     }
        // }

        A_NumberInput{
            id: lengthSetting_Input
            inputWidth: 300
            anchors.top: workAreaBack.top
            anchors.topMargin: 300
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            text: Cpp_PLC.MaterialLengthValue
            minValue: Cpp_PLC.Manual_MaterialLengthMin
            maxValue: Cpp_PLC.Manual_MaterialLengthMax
            keyboard: manualProcessKeyboard
            onEditingFinished: function(value){
                Cpp_PLC.write_Modbus_RTU_Hold_32(212,value)
            }

        }


        Text{
            anchors.left: lengthSetting_Input.right
            anchors.leftMargin: 50
            anchors.verticalCenter: lengthSetting_Input.verticalCenter
            font.pointSize: 40
            text: "<"
        }

        A_Label{
            anchors.left: lengthSetting_Input.right
            anchors.leftMargin: 130
            anchors.verticalCenter: lengthSetting_Input.verticalCenter
            label_Data: Cpp_PLC.Manual_MaterialLengthMax
            labelBorderColor: "transparent"
            labelBack: "transparent"
        }

        A_Label{
            anchors.bottom: segmentInput.top
            // anchors.leftMargin: 130
            anchors.horizontalCenter: lengthSetting_Input.horizontalCenter
            label_Data: qsTr("设定段数")
            labelBorderColor: "transparent"
            labelBack: "transparent"
        }

        // // 段数输入
        // A_TextInput{
        //     id: segmentInput
        //     anchors.top: workAreaBack.top
        //     anchors.topMargin: 490
        //     anchors.horizontalCenter: workAreaBack.horizontalCenter
        //     inputWidth: 300
        //     showData: Cpp_PLC.CutSegments
        //     onInputFinished: {
        //         // console.log("段数设定: "+ inputData)
        //         Cpp_PLC.write_Modbus_RTU_Hold_16(230,inputData)
        //     }

        // }

        A_NumberInput{
            id: segmentInput
            inputWidth: 300
            anchors.top: workAreaBack.top
            anchors.topMargin: 490
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            text: Cpp_PLC.CutSegments
            // minValue: Cpp_PLC.Manual_MaterialLengthMin
            // maxValue: Cpp_PLC.Manual_MaterialLengthMax
            keyboard: manualProcessKeyboard
            onEditingFinished: function(value){
                Cpp_PLC.write_Modbus_RTU_Hold_16(230,value)
            }

        }


        A_Label{
            anchors.top: workAreaBack.top
            anchors.topMargin: 610
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            label_Data: qsTr("段  数")
            labelBorderColor: "transparent"
            labelBack: "transparent"
        }

        A_Label{
            anchors.top: workAreaBack.top
            anchors.topMargin: 680
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            // label_Data: "段  数"
            labelWidth: 300
            labelBorderColor: "#F0F8FF"
            labelBack: "black"
            label_FontColor: "aqua"
            label_Data: Cpp_PLC.CurrentSegments
        }

        A_Button{
            anchors.top: workAreaBack.top
            anchors.topMargin: 680
            anchors.right: workAreaBack.right
            anchors.rightMargin: 120
            contentText_Data: qsTr("段数清空")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

            onButtonPressed: {
                console.log("清空段数按下")
                Cpp_PLC.write_Modbus_RTU_Coils(75,"1")
            }

            onButtonReleased: {
                console.log("清空段数松开")
                Cpp_PLC.write_Modbus_RTU_Coils(75,"0")
            }
        }

        Item{
            anchors.top: workAreaBack.top
            anchors.topMargin: 800
            anchors.horizontalCenter: workAreaBack.horizontalCenter
            width: workAreaBack.width
            height: 170
            visible: Cpp_PLC.AutoObserveState

            A_Label{
                anchors.top: parent.top
                // anchors.topMargin:
                anchors.horizontalCenter: parent.horizontalCenter
                labelWidth: 300
                label_Data: qsTr("料高测量值")
                labelBorderColor: "transparent"
                labelBack: "transparent"
            }

            A_Label{
                anchors.top: parent.top
                anchors.topMargin: 70
                anchors.horizontalCenter: parent.horizontalCenter
                labelBorderColor: "#F0F8FF"
                labelWidth: 300
                labelBack: "black"
                label_FontColor: "aqua"
                label_Data: Cpp_PLC.MaterialHeightValue
            }

            A_Button{
                anchors.top: parent.top
                anchors.topMargin: 70
                anchors.left: parent.left
                anchors.leftMargin: 120

                contentText_Data: qsTr("误差修正")
                contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

                onButtonPressed: {
                    console.log("误差修正按下")
                    Cpp_PLC.write_Modbus_RTU_Coils(110,"1")
                }

                onButtonReleased: {
                    // console.log("误差修正松开")
                }
            }

            Rectangle{
                anchors.top: parent.top
                anchors.topMargin: 70
                anchors.right: parent.right
                anchors.rightMargin: 320
                width: 30
                height: 70
                radius: 10
                border.width: 1
                border.color: "#F0F8FF"
                color: Cpp_PLC.ObservingState ? "green" : "black"

            }

            A_Button{
                anchors.top: parent.top
                anchors.topMargin: 70
                anchors.right: parent.right
                anchors.rightMargin: 120
                contentText_Data: qsTr("测  高")
                contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

                onButtonPressed: {
                    // console.log("测高按钮按下")
                    Cpp_PLC.write_Modbus_RTU_Coils(108,"1")
                }

                onButtonReleased: {
                    // console.log("测高按钮松开")
                    Cpp_PLC.write_Modbus_RTU_Coils(108,"0")
                }
            }
        }
    }

    Item{
        id: buttonAreaBack
        anchors.top: workAreaBack.bottom
        anchors.horizontalCenter: manualProcessWindowRoot.horizontalCenter
        width: manualProcessWindowRoot.width
        height: 155

        Rectangle{
            anchors.fill: parent
            color: "transparent"
            border.width: 3
            border.color: "#000000"
        }


        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 20
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: qsTr("压  紧")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
            contentRectangle_BorderWidth: Cpp_PLC.ImpactState ? 5 : 3
            contentRectangle_BorderColor: Cpp_PLC.ImpactState ? "gold" : "black"

            onButtonPressed: {
                // console.log("压紧按下")
                Cpp_PLC.write_Modbus_RTU_Coils(236,"1")
            }

            onButtonReleased: {
                // console.log("压紧松开")
                Cpp_PLC.write_Modbus_RTU_Coils(236,"0")

            }
        }

        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 200
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: qsTr("定  位")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

            onButtonPressed: {
                // console.log("定位按下")
                Cpp_PLC.write_Modbus_RTU_Coils(24,"1")
            }

            onButtonReleased: {
                // console.log("定位松开")
                Cpp_PLC.write_Modbus_RTU_Coils(24,"0")
            }
        }

        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 380
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: Cpp_PLC.SawsStartState ? qsTr("锯  启") : qsTr("锯  停")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
            contentRectangle_BorderWidth: Cpp_PLC.SawsStartState ? 5 : 3
            contentRectangle_BorderColor: Cpp_PLC.SawsStartState ? "gold" : "black"

            onButtonPressed: {
                // console.log("锯片按下")
                Cpp_PLC.write_Modbus_RTU_Coils(237,"1")
            }

            onButtonReleased: {
                // console.log("锯片松开")
                Cpp_PLC.write_Modbus_RTU_Coils(237,"0")
            }
        }

        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 560
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: qsTr("锯  切")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20
            contentRectangle_BorderWidth: Cpp_PLC.SawsOutState ? 5 : 3
            contentRectangle_BorderColor: Cpp_PLC.SawsOutState ? "gold" : "black"

            onButtonPressed: {
                // console.log("锯切按下")
                Cpp_PLC.write_Modbus_RTU_Coils(238,"1")
            }

            onButtonReleased: {
                // console.log("锯切松开")
                Cpp_PLC.write_Modbus_RTU_Coils(238,"0")
            }
        }

        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 740
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: qsTr("复  位")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

            onButtonPressed: {
                // console.log("复位按下")
                Cpp_PLC.write_Modbus_RTU_Coils(5,"1")
            }

            onButtonReleased: {
                // console.log("复位松开")
                Cpp_PLC.write_Modbus_RTU_Coils(5,"0")
            }
        }

        A_Button{
            anchors.left: buttonAreaBack.left
            anchors.leftMargin: 740 + 180
            anchors.verticalCenter: buttonAreaBack.verticalCenter
            buttonWidth: 150
            buttonHeight: 90
            contentText_Data: qsTr("打  印")
            contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 40 :  Cpp_Config.Language_Type === 2 ? 20 : 20

            onButtonClicked: {
                Cpp_Printer.printerActive(materialHeight_Print,
                                          materialLength_Print,
                                          leftAngle_Print,
                                          rightAngle_Print)
            }
        }



    }


}
